INCLUDE_DIRECTORIES("${ATOM3D_INCLUDE_DIR}")
INCLUDE_DIRECTORIES("${ATOM3DX_INCLUDE_DIR}")

IF (BUILD_WIN64)
	LINK_DIRECTORIES("${THIRDPART_DIR}/lib/dxsdk/x64")
ELSE (BUILD_WIN64)
	LINK_DIRECTORIES("${THIRDPART_DIR}/lib/dxsdk/x86")
ENDIF (BUILD_WIN64)

AUX_SOURCE_DIRECTORY(. UImgRefSrc)
FILE(GLOB UImgRefPrivateHeaders *.h)

ADD_EXECUTABLE(uimgref ${UImgRefSrc} ${UImgRefPrivateHeaders})
ADD_DEPENDENCIES(uimgref ATOMX)
TARGET_LINK_LIBRARIES(uimgref ATOMX)

INSTALL_TARGET(uimgref)
